package com.starling.core
{
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.display.DisplayObject;
	import flash.display.DisplayObjectContainer;
	import flash.geom.Rectangle;

	public class InfoImage
	{
		public static function getInfo(img:DisplayObject ,scale:Number):Object
		{
			var rect:Rectangle = img.getBounds(img.parent);
			
			return {
				pivotX:BNumber.formatNumber(-rect.x * scale ,2),
				pivotY:BNumber.formatNumber(-rect.y  * scale ,2)
			};
		}
	}
}